package com.zhiyou100.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 老师实体类
 *
 * @author yang
 * @className Teacher
 * @packageName com.zhiyou100.entity
 * @Description TODO 老师实体类
 * @date 2020-08-19 09:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component("tea")
public class Teacher implements Serializable {
    @Value("1")
    private Integer tid;
    @Value("张老师")
    private String tname;
    @Value("200.0f")
    private Float tsalary;
}
